The following examples demonstrates how to add separator lines between card "columns".
XAML |
Copy Code |
---|---|
<Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"> <Grid.Resources> <xcdg:DataGridCollectionViewSource x:Key="cvs_orders" Source="{Binding Source={x:Static Application.Current}, Path=Orders}"/> </Grid.Resources> <xcdg:DataGridControl x:Name="OrdersGrid" ItemsSource="{Binding Source={StaticResource cvs_orders}}"> <xcdg:DataGridControl.View> <xcdg:CardView> <xcdg:CardView.SeparatorLinePen> <Pen Thickness="1.5" Brush="Orange" DashStyle="{x:Static DashStyles.DashDotDot}"/> </xcdg:CardView.SeparatorLinePen> </xcdg:CardView> </xcdg:DataGridControl.View> </xcdg:DataGridControl> </Grid> |
VB.NET |
Copy Code |
---|---|
Dim pen As New Pen() pen.Thickness = 1.5 pen.Brush = Brushes.Orange pen.DashStyle = DashStyles.DashDotDot Dim view As New CardView() view.SeparatorLinePen = pen dataGridControl.View = view |
C# |
Copy Code |
---|---|
Pen pen = new Pen(); pen.Thickness = 1.5; pen.Brush = Brushes.Orange; pen.DashStyle = DashStyles.DashDotDot; CardView view = new CardView(); view.SeparatorLinePen = pen; dataGridControl.View = view; |